adb shell logcat -c
adb shell logcat > ./test.txt